#include <QDebug>
#include "worker.h"
#include "db_wrapper.h"

worker::worker(const load_func &func, QObject *parent)
    : QObject    (parent)
    , load_func_ (func)
{
}

worker::~worker()
{
    qDebug() << "~worker";
}

void worker::do_work()
{
    load_func_();
    emit finished();
}
